# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mousepad
pkgver=0.6.1
pkgrel=2
pkgdesc="Simple Text Editor for Xfce4"
url="https://gitlab.xfce.org/apps/mousepad"
arch="all"
license="GPL-2.0-or-later"
makedepends="gspell-dev gtk+3.0-dev gtksourceview-dev intltool libxfce4ui-dev polkit-dev xfconf-dev"
depends="desktop-file-utils"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/apps/mousepad/${pkgver%.*}/mousepad-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
cf6ee9e32ecb1be9f1f54c587c4e8f653eb949f1103e378bf27959b88d8d6f268fb796285c8077bcef97926288cf941b9fb9426bfeb680ee728bddefa2d77d23  mousepad-0.6.1.tar.bz2
"
